import network from '@/common/network.js'
//批量获取场景的免登接口
export const getGroupUrls =id => network({
  url: `/gp-boot/gp/login/getGroupUrls/g${id}`,
  auth: true,
})
//发送短信
export const getSms = data=> {
  return network({
    url: '/gp-boot/gp/api/sms',
    data,
    method: 'post',
  })
}
//修改密码
export const updatePwd = data=> {
  return network({
    url: '/gp-boot/gp/api/updatePwd',
    method: 'post',
    data,
    auth: true,
  })
}


//法人登录接口
export const comlogin = data=> {
  return network({
    url: '/gp-boot/gp/api/comlogin',
    data,
    method: 'post',
    auth: true,
  })
}
//手机号法人登录接口
export const phonecomLogin = data=> {
  return network({
    url: '/gp-boot/gp/api/phonecomLogin',
    method: 'post',
    data,
    auth: true,
  })
}
